package com.jsbb.dto.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 个人数据修改DTO
 *
 * @author w
 * @date 2021-03-05
 */
@Data
public class PersonalDataUpdateDto {

    @NotNull
    @ApiModelProperty(value = "ID", required = true)
    private Long id;

    @NotNull
    @ApiModelProperty(value = "性别（1男  2女）", required = true)
    private Integer sex;

    @NotNull
    @ApiModelProperty(value = "出生日期（yyyy-MM-dd）", required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;

    @NotEmpty
    @ApiModelProperty(value = "手机号码", required = true)
    private String phone;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "省ID")
    private String province;

    @ApiModelProperty(value = "市ID")
    private String city;

    @ApiModelProperty(value = "区ID")
    private String area;

    @ApiModelProperty(value = "地址")
    private String address;
}
